import cv2 as cv

img = cv.imread("../pic/lena.jpg")
cv.imshow("lena", img)
#高斯滤波, 核越大，越模糊，sigma越大，越模糊
img = cv.GaussianBlur(img, (5,5), 1.5)
cv.imshow("gause 1.5(5x5)", img)
#中值滤波
img = cv.medianBlur(img, 5)
cv.imshow("median", img)
#平均滤波
img = cv.blur(img,(5,5))
cv.imshow("average", img)

cv.waitKey()